﻿<%@ Page Language="C#" MasterPageFile="~/Manager/MasterPage/PageTemplate.Master" AutoEventWireup="true"
    Codebehind="Default.aspx.cs" Inherits="Model.Web.Module.Model.T_TouSu.Default"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <FrameWorkWebControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
         HeadOPTxt="来信办理列表" HeadTitleTxt="来信办理">
        <FrameWorkWebControls:HeadMenuButtonItem ButtonPopedom="New" ButtonUrl="Manager.aspx?CMD=New"
            ButtonUrlType="Href" ButtonVisible="True" ButtonName="来信办理" />
    </FrameWorkWebControls:HeadMenuWebControls>
    <FrameWorkWebControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <FrameWorkWebControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="来信办理列表">
            <asp:GridView ID="GridView1" runat="server" OnSorting="GridView1_Sorting" OnRowCreated="GridView1_RowCreated" >
                <Columns>
                    <asp:TemplateField SortExpression="ID" HeaderText="序号"> 
                        <ItemTemplate>
                        <a href="Manager.aspx?IDX=<%#Eval("ID")%>&CMD=List"><%# (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize + Container.DataItemIndex + 1%></a>
                        </ItemTemplate>
                        <ItemStyle Wrap="True" />  
                        <HeaderStyle Wrap="False" />    
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="类型" SortExpression="Type" DataField="Type" />
                    <asp:BoundField HeaderText="编号" SortExpression="TID" DataField="TID" />
                    <asp:BoundField HeaderText="来源" SortExpression="ALaiyuan" DataField="ALaiyuan" />
                    <asp:BoundField HeaderText="收到转办单编号" SortExpression="AzhuanbanID" DataField="AzhuanbanID" />
                    <asp:BoundField HeaderText="收到转办单时间" SortExpression="AzhuanfangTime" DataField="AzhuanfangTime" />
                    <asp:BoundField HeaderText="姓名" SortExpression="ALiFangname" DataField="ALiFangname" />
                    <asp:BoundField HeaderText="时间" SortExpression="ALaifangTime" DataField="ALaifangTime" />
                    <asp:BoundField HeaderText="身份证号码或其他证件号" SortExpression="AID" DataField="AID" />
                    <asp:BoundField HeaderText=" 联系电话" SortExpression="APhone" DataField="APhone" />
                    <asp:BoundField HeaderText="来访单位" SortExpression="AlaifangGroup" DataField="AlaifangGroup" />
                    <asp:BoundField HeaderText="来访人住址" SortExpression="Alaifangzhuzhi" DataField="Alaifangzhuzhi" />
                    <asp:BoundField HeaderText="来访人单位或住址邮政编码" SortExpression="Alaifangpostcode" DataField="Alaifangpostcode" />
                    <asp:BoundField HeaderText="被投诉单位地址" SortExpression="Abeitousudanw" DataField="Abeitousudanw" />
                    <asp:BoundField HeaderText="被投诉单位名称以及法人代表" SortExpression="AbeitousuName" DataField="AbeitousuName" />
                    <asp:BoundField HeaderText="反映的主要污染问题是什么？水、气、噪声、振动、电磁辐射污染还是赔偿？" SortExpression="Afanyingwenti" DataField="Afanyingwenti" />
                    <asp:BoundField HeaderText="第一次污染问题发生时间" SortExpression="AdiyiciTime" DataField="AdiyiciTime" />
                    <asp:BoundField HeaderText="损失情况" SortExpression="Asunshi" DataField="Asunshi" />
                    <asp:BoundField HeaderText="哪个职能部门做的损失鉴定" SortExpression="Azhinengbumen" DataField="Azhinengbumen" />
                    <asp:BoundField HeaderText="第一次、在什么时间，向哪个环保部门反映的" SortExpression="ATimeAndGroup" DataField="ATimeAndGroup" />
                    <asp:BoundField HeaderText="反映的时间" SortExpression="AfanyingTime" DataField="AfanyingTime" />
                    <asp:BoundField HeaderText="县（区、市）处理答复情况" SortExpression="Achuliqingkuang" DataField="Achuliqingkuang" />
                    <asp:BoundField HeaderText="是否给答复意见书？答复意见书的内容" SortExpression="ADafu" DataField="ADafu" />
                    <asp:BoundField HeaderText="是否向市环保部门反映（申请复查                         " SortExpression="AShenqingfucha" DataField="AShenqingfucha" />
                    <asp:BoundField HeaderText=" 申请复查时间" SortExpression="AfuchaTime" DataField="AfuchaTime" />
                    <asp:BoundField HeaderText="市环保部门的答复和处理意见（复查意见）：
   " SortExpression="AShiyijian" DataField="AShiyijian" />
                    <asp:BoundField HeaderText="信访办受理意见" SortExpression="Axinfangbanyijian" DataField="Axinfangbanyijian" />
                    <asp:BoundField HeaderText="领导批示意见" SortExpression="AlingdaoYijian" DataField="AlingdaoYijian" />
                    <asp:BoundField HeaderText="转出去向" SortExpression="Azhuanchu" DataField="Azhuanchu" />
                    <asp:BoundField HeaderText="  转出时间" SortExpression="AzhuanchuTime" DataField="AzhuanchuTime" />
                    <asp:BoundField HeaderText="要求办结上报时间" SortExpression="AyaoqiuTime" DataField="AyaoqiuTime" />
                    <asp:BoundField HeaderText="办理结果" SortExpression="Ajieguo" DataField="Ajieguo" />
                    <asp:BoundField HeaderText="记录人" SortExpression="Ajiluren" DataField="Ajiluren" />
                    <asp:BoundField HeaderText="记录时间" SortExpression="AjilushiTime" DataField="AjilushiTime" />
                    <asp:BoundField HeaderText="附件" SortExpression="Afujian" DataField="Afujian" />
                    <asp:BoundField HeaderText="反映问题类型" SortExpression="BWentiType" DataField="BWentiType" />
                    <asp:BoundField HeaderText="县区办理结果" SortExpression="BXianCon" DataField="BXianCon" />
                    <asp:BoundField HeaderText="信访办受理意见" SortExpression="BXinfang" DataField="BXinfang" />
                    <asp:BoundField HeaderText="领导批示意见" SortExpression="BLingdao" DataField="BLingdao" />
                    <asp:BoundField HeaderText="要求办结上报时间" SortExpression="BSumDay" DataField="BSumDay" />
                    <asp:BoundField HeaderText="要求时间" SortExpression="BEndDate" DataField="BEndDate" />
                    <asp:BoundField HeaderText="处理单位" SortExpression="BChuliGroup" DataField="BChuliGroup" />
                    <asp:BoundField HeaderText="抄送单位" SortExpression="BChaoSong" DataField="BChaoSong" />
                    <asp:BoundField HeaderText="协办单位" SortExpression="BXieban" DataField="BXieban" />
                    <asp:BoundField HeaderText="是否办结" SortExpression="BIF" DataField="BIF" />
                    <asp:BoundField HeaderText="处理时间" SortExpression="BChuliDate" DataField="BChuliDate" />
                    <asp:BoundField HeaderText="办理状态" SortExpression="zhuangtai" DataField="zhuangtai" />
                    <asp:BoundField HeaderText="toLingDao" SortExpression="toLingDao" DataField="toLingDao" />
                </Columns>
            </asp:GridView>
            <FrameWorkWebControls:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
            </FrameWorkWebControls:AspNetPager>
            <asp:Button ID="Button2" Visible="false" CssClass="button_bak" runat="server" Text="删除" OnClientClick="return deleteop();" OnClick="Button2_Click" />
        </FrameWorkWebControls:TabOptionItem>
        <FrameWorkWebControls:TabOptionItem ID="TabOptionItem2" runat="server" Tab_Name="查询">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr>
                    <td class="table_body">
                        编号</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="TID_Input" title="请输入编号~200:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td colspan="2" align="right">
                        <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="查询" OnClick="Button1_Click" /></td>
                </tr>
            </table>
        </FrameWorkWebControls:TabOptionItem>
    </FrameWorkWebControls:TabOptionWebControls>

<script language="javascript" type="text/javascript">
<!--

function SelectAll()
{
   var e=document.getElementsByTagName("input");
   var IsTrue;
   if(document.getElementById("CheckboxAll").value=="0")
　 {
　　 IsTrue=true;
　　 document.getElementById("CheckboxAll").value="1"
　 }
　 else
　 {
　　IsTrue=false;
　　document.getElementById("CheckboxAll").value="0"
　　}
　　
　for(var i=0;i<e.length;i++)
　{
　　if (e[i].type=="checkbox")
　　{
　　   e[i].checked=IsTrue;
　　}
　}
}
function deleteop()
{
    var checkok = false;
    var e=document.getElementsByTagName("input");
    for(var i=0;i<e.length;i++)
　  {
　     if (e[i].type=="checkbox")
　　     {
　　         if (e[i].checked==true)
　　         {
　　             checkok = true;
　　             break;　　             
　　         }
　　     }  
　  }
　  if (checkok) 
        return confirm('删除后不可恢复,确认要批量删除选中记录吗？');
    else
    {
        
        alert("请选择要删除的记录!");
        return false;
    }
}
// -->
    </script>

</asp:Content>
